<template>
  <div class="complain">
    <div class="header">
      <el-breadcrumb separator="/">
        <el-breadcrumb-item>物业服务</el-breadcrumb-item>
        <el-breadcrumb-item>投诉建议</el-breadcrumb-item>
        <el-breadcrumb-item :to="{ path: '/home/ComplaintsSuggestions' }">
          投诉详情
        </el-breadcrumb-item>
      </el-breadcrumb>
      <h1>投诉详情</h1>
    </div>
    <div class="message">
      <p>投诉信息</p>
      <el-form class="demo-form-inline">
            <div>             
              <el-form-item label="投诉类型"> 小区环境 </el-form-item>
              <el-form-item label="手机号码"> 16684954889 </el-form-item>
            </div>
            <div>
              <el-form-item label="问题描述"> 小区日间施工时间过长，影响休息 </el-form-item>
              <el-form-item label="投诉业主"> 蒋锋 </el-form-item>
            </div>
            <div>
              <el-form-item label="投诉人姓名"> 李先生 </el-form-item>
              <el-form-item label="提交时间"> 2022/09/09 10:06:09 </el-form-item>
            </div>
          </el-form>
    </div>
    <div class="situation">
      <p>处理情况</p>
      <el-form :model="form" label-width="120px">
    <el-form-item label="处理状态">
      <el-input v-model="form.name" />
    </el-form-item>
    <el-form-item label="处理人员">
      <el-select v-model="form.region" placeholder="请选择">
        <el-option label="Zone one" value="shanghai" />
        <el-option label="Zone two" value="beijing" />
      </el-select>
    </el-form-item>
    <el-form-item label="处理结果">
      <el-input v-model="form.desc" type="textarea" placeholder="请输入"/>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="onSubmit">提交</el-button>
      <el-button>返回</el-button>
    </el-form-item>
    </el-form>
    </div>
  </div>
</template>

<script setup lang="ts">
import { reactive } from 'vue'
const form = reactive({
  name: '',
  region: '',
  date1: '',
  date2: '',
  delivery: false,
  type: [],
  resource: '',
  desc: '',
})

const onSubmit = () => {
  console.log('submit!')
}
</script>

<style lang="less" scoped>
.complain {
  height: 100%;
  background: #f0f2f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  .header {
    width: 1136px;
    background: white;
    height: 100px;
    margin: 20px 0;
    .el-breadcrumb {
      height: 37px;
      line-height: 37px;
      font-size: 14px;
      margin-left: 30px;
      :deep(.el-breadcrumb__item:first-child .el-breadcrumb__inner) {
        color: #aaadb4;
      }
    }
    h1 {
      height: 60px;
      line-height: 60px;
      margin-left: 30px;
      font-family: "Microsoft Tai Le Bold", "Microsoft Tai Le", sans-serif;
      font-weight: 700;
      font-style: normal;
      font-size: 20px;
    }
  }
  .message{
    width: 1136px;
    background: white;
    height: 160px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f3f0f5;
    p{
      margin: 20px 40px;
    }
      /deep/.el-form {
        margin-top: 20px;
        width: 100%;
        display: flex;
      justify-content: space-around;
      }
  }
  .situation{
    width: 1136px;
    background: white;
    height: 360px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f3f0f5;
    p{
      margin: 20px 40px;
    }
    .el-form{
      width: 430px;
      margin: 0 auto;
      /deep/.el-textarea__inner{
        height: 90px;
      }
    }
  }
}
</style>
